//
//  WelcomController.swift
//  CHUZHOUNEWS
//
//  Created by tanchao on 15/8/17.
//  Copyright © 2015年 chaoren. All rights reserved.
//

import UIKit
import SDWebImage
class WelcomController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(iconView)
        iconView.frame = UIScreen.mainScreen().bounds
        let urlStr = "http://218.244.138.113:8081//Public/Uploads/ad/1438834408.jpg"
        iconView.sd_setImageWithURL(NSURL(string: urlStr))
        performSelector("sendNotification", withObject: self, afterDelay: 3)
    }
    func sendNotification(){
            NSNotificationCenter.defaultCenter().postNotificationName(CHUZOUNEWSControllerSwitchNotification, object: true)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    private lazy var iconView = UIImageView()

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
